﻿seajs.config({
    base: './js/',
    alias: {
        'labjs': 'lib/LAB.min',
        'jquery': 'lib/jquery-1.6.1.min',
        'underscore': 'lib/underscore-min',
        'backbone': 'lib/backbone.min',

        'css': '../style/',

        'model': 'ezdesk/model/',
        'view': 'ezdesk/view/',

        'main': 'ezdesk/main'
    }
});

define(function (require) {
    require('css/jquery.mobile-1.0b1.css');
    require('css/site.css');

    require('labjs');

    // 载入基础lib
    $LAB.script('js/lib/jquery-1.6.1.min.js')
        .script('js/lib/underscore-min.js').wait()
        .script('js/lib/backbone.min.js').wait()
        .script('js/lib/backbone-localstorage.js').wait()
        .script('js/lib/jquery.mobile-1.0b1.js')
        .wait(function () {
            require('main');
        });
});